//
//  XJYLogin.h
//  高仿萝卜书摘
//
//  Created by 谢俊逸 on 2016/11/27.
//  Copyright © 2016年 谢俊逸. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "User.h"

@interface XJYLogin : NSObject

@property (nonatomic,strong) NSString *name;
@property (nonatomic,strong) NSString *email;
@property (nonatomic,strong) NSString *password;
@property (nonatomic,strong) NSNumber *remember_me;


@property (nonatomic,strong) NSString *j_captcha;



- (NSString *)toPath;
- (NSDictionary *)toParams;

+ (BOOL)isLogin;
+ (void)doLogin:(NSDictionary *)loginData;
+ (void)doLogout;

+ (void)setPreUserEmail:(NSString *)emailStr;
+ (NSString *)preUserEmail;
+ (User *)curLoginUser;
+ (User *)userWithGlobaykeyOrEmail:(NSString *)textStr;
+ (NSMutableDictionary *)readLoginDataList;
+ (BOOL )isLoginUserGlobalKey:(NSString *)global_key;


@end
